package pub.guoxin.server.simulation.vo;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import pub.guoxin.oops.tidy.LocalDateTimeDeserializer;
import pub.guoxin.oops.tidy.LocalDateTimeSerializer;

import java.time.LocalDateTime;

/**
 * Create by guoxin on 2018/5/12
 */
public class CommunicationDataVo {
    /**
     * 版本号
     */
    private Integer pid;
    /**
     * 设备串号
     */
    private String sn;
    /**
     * 电池电量
     */
    private Float batteryLevel;
    /**
     * 版本号
     */
    private Integer version;
    /**
     * 经度
     */
    private Float longitude;
    /**
     * 纬度
     */
    private Float latitude;
    /**
     * 时间戳
     */
    @JsonDeserialize(using = LocalDateTimeDeserializer.class)
    @JsonSerialize(using = LocalDateTimeSerializer.class)
    private LocalDateTime dateTime;

}
